#include "Message.h"

Message::Message(const string &code)
    : m_code(code)
{
}

string
Message::toReadableString() const
{
    string result = m_code + " {";
    for (ContentMap::const_iterator it = m_content.begin(); it != m_content.end(); ++it) {
        result += it->first + ": " + it->second.toString().toUtf8().data() + "; ";
    }
    result += "}";
    return result;
}
